from django.urls import re_path,path

from .views import *

urlpatterns = [
    # 与地址相关的接口
    re_path(r"address/add$", addressAdd),
    re_path(r"address/list$", addressList),
    re_path(r"address/update$", addressUpdate),
    re_path(r"address/delete$", addressDelete),

    path('address/search', AddressSearch.as_view(), name='address/search'),

    # 与角色相关的接口
    re_path(r"role/add$", roleAdd),
    re_path(r"role/list$", roleList),
    re_path(r"role/update$", roleUpdate),
    re_path(r"role/delete$", roleDelete),

    # 与用户相关的接口
    re_path(r"user/add$", userAdd),
    re_path(r"user/list$", userList),
    re_path(r"user/get/id$", getUserById),
    re_path(r"user/update$", userUpdate),
    re_path(r"user/delete$", userDelete),
    re_path(r"user/login$", userLogin),

    path('user/search', UserSearch.as_view(), name='user/search'),
]
